package com.sdses.weather.common.error;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum ErrCode {
    /**
     * 成功
     */
    SUCCESS("0", "OK"),
    SUCCESS1000("1000", "OK"),
    FAILED("9999", "failure"),
    UNAUTHORIZED_ACCESSED("4001", "unauthorized"),

    AUTH_EXPIRED("401", "system.auth_expired"),

    FORBIDDEN("4003", "no access"),

    PARAM("4004", "system.parameter_error"),

    AUTH_INVALID("4005", "system.auth_invalid"),

    PAGE_NOT_FOUND("4004", "not found resource 404 error"),
    ;

    /**
     * 业务状态码
     */
    private String code;

    /**
     * 业务信息描述
     */
    private String msg;
}
